import http from '../utils/request'
export default{    
    addOrganization:function(data){
        return http.post('/organization',data);
    },
    updateOrganization:function(data){
        return http.put('/organization',data);
    },
    deleteOrganizations:function(ids){
        return http.delete('/organization',{ids:ids});
    },
    getOrganization:function(id){
        return http.get(`/organizations/${id}`);
    },
    getOrganizationTree:function(data){
        return http.get('/organization/tree',data);
    },
    queryOrganizations:function(data){
        return http.get('/organization/all',data);
    },
    
}
